import AdComponent from './AdComponent/index.vue';
import AdComponentConfig from './AdComponent/config.vue';
import BottomComponent from './BottomComponent/index.vue';
import BottomComponentConfig from './BottomComponent/config.vue';
import ProductComponent from './ProductComponent/index.vue';
import ProductComponentConfig from './ProductComponent/config.vue';
import TopComponent from './TopComponent/index.vue';
import TopComponentConfig from './TopComponent/config.vue';
import { App } from 'vue';

const global: any = {
  AdComponent,
  AdComponentConfig,
  BottomComponent,
  BottomComponentConfig,
  ProductComponent,
  ProductComponentConfig,
  TopComponent,
  TopComponentConfig
};

export default (app: App) => {
  Object.keys(global).forEach((key) => {
    app.component(key, global[key]);
  });
};
